# coding=utf-8
__author__ = 'good'

from flask import Blueprint
from . import page

article = Blueprint('article', __name__, url_prefix='/article')

article.add_url_rule('/<int:aid>', view_func=page.show, methods=['GET', 'POST'])
article.add_url_rule('/create', view_func=page.create, methods=['GET', 'POST'])
article.add_url_rule('/edit_<int:id>', view_func=page.edit, methods=['GET', 'POST'])
article.add_url_rule('/commit', view_func=page.commit, methods=['GET', 'POST'])
